// global transition css

/* fade */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.28s ease-in-out;
}

.fade-enter,
.fade-leave-active {
  opacity: 0;
}

/* fade-slide */
.fade-slide-leave-active,
.fade-slide-enter-active {
  transition: all 0.3s;
}

.fade-slide-enter-from {
  opacity: 0;
  transform: translateX(-30px);
}

.fade-slide-leave-to {
  opacity: 0;
  transform: translateX(30px);
}

/* fade-slide-y */
.fade-slide-y-leave-active,
.fade-slide-y-enter-active {
  transition: all 0.3s;
}

.fade-slide-y-enter-from {
  opacity: 0;
  transform: translateY(-30px);
}

.fade-slide-y-leave-to {
  opacity: 0;
  transform: translateY(30px);
}

/* float 先下后上 */
.float-leave-active,
.float-enter-active {
  transition: all 0.5s;
}

.float-enter-from {
  opacity: 0;
  transform: translateY(30px);
}

.float-leave-to {
  opacity: 0;
  transform: translateY(30px);
}

// zoom-fade
.zoom-fade-enter-active,
.zoom-fade-leave-active {
  transition: transform 0.35s, opacity 0.28s ease-in-out;
}

.zoom-fade-enter-from {
  opacity: 0;
  transform: scale(0.97);
}

.zoom-fade-leave-to {
  opacity: 0;
  transform: scale(1.03);
}

/* breadcrumb transition */
.breadcrumb-enter-active,
.breadcrumb-leave-active {
  transition: all 0.5s;
}

.breadcrumb-enter,
.breadcrumb-leave-active {
  opacity: 0;
  transform: translateX(20px);
}

.breadcrumb-move {
  transition: all 0.5s;
}

.breadcrumb-leave-active {
  position: absolute;
}

// 呼吸灯
.gradually {
  /* IE10、Firefox and Opera，IE9以及更早的版本不支持 */
  animation-name: breath; /* 动画名称 */
  animation-delay: 2s; /* 动画延迟1秒执行 */
  animation-duration: 3s; /* 动画时长3秒 */
  animation-timing-function: ease-in-out; /* 动画速度曲线：以低速开始和结束 */
  animation-iteration-count: infinite; /* 播放次数：无限 */

  /* Safari and Chrome */
  -webkit-animation-name: breath; /* 动画名称 */
  -webkit-animation-delay: 2s; /* 动画延迟1秒执行 */
  -webkit-animation-duration: 3s; /* 动画时长3秒 */
  -webkit-animation-timing-function: ease-in-out; /* 动画速度曲线：以低速开始和结束 */
  -webkit-animation-iteration-count: infinite; /* 播放次数：无限 */
}

@keyframes breath {
  from {
    opacity: 0.4;
  } /* 动画开始时的不透明度 */
  50% {
    opacity: 1;
  } /* 动画50% 时的不透明度 */
  to {
    opacity: 0.4;
  } /* 动画结束时的不透明度 */
}

@-webkit-keyframes breath {
  from {
    opacity: 0.4;
  } /* 动画开始时的不透明度 */
  50% {
    opacity: 1;
  } /* 动画50% 时的不透明度 */
  to {
    opacity: 0.4;
  } /* 动画结束时的不透明度 */
}
